package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("监控区域实体")
@TableName("monitor_area")
public class MonitorArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "base_id", type = IdType.AUTO)
    private Long baseId;

    @ApiModelProperty("区域名称")
    @TableField("base_name")
    private String baseName;

    @ApiModelProperty("上级区域ID")
    @TableField("base_parent_id")
    private Long baseParentId;

    @ApiModelProperty("祖级列表")
    @TableField("ancestors")
    private String ancestors;

    @ApiModelProperty("顺序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("创建者")
    @TableField("creator")
    private Long creator;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    @TableField("modifier")
    private Long modifier;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("删除标识")
    private Byte isDelete;

    @ApiModelProperty("播流域名")
    private String domain;

    private String appName;

    private String streamName;

    @ApiModelProperty("摄像机状态 online在线   offline离线")
    private String cameraStatus;

    /**
     * '1'：监控区域，'2'：监控摄像头
     */
    @ApiModelProperty("所属类型")
    @TableField("type")
    private String type;
}
